class BadFoodException extends Exception{  
    BadFoodException(){  
        System.out.println("Inside BFE");  
    }  
}  
  
class MyException {  
    public void checkFood(String f) throws BadFoodException{  
        if (f.equals("Tuna") || f.equals("Ham")){ 
            throw new BadFoodException();
        }
        else {
            System.out.println("We like this food ");
        }
    }
    public static void main(String [] args){  
        String t = args[0];  
        MyException m = new MyException(); 
        try{
            m.checkFood(t);
        }  
        catch(BadFoodException b){  
            System.out.println("Hate this food");  
        }  
    }  
}
